import Types from '../actionTypes';

const initState = {
  alarmOverview: {
    name: 'shanshan',
    age: 30,
  },
};

export default (state = initState, action) => {
  const newState = JSON.parse(JSON.stringify(state));
  switch (action.type) {
    case Types.ALARM_OVER_VIEW:
      newState.alarmOverview = action.data;
      return newState;
    default:
      console.log('Types no match in alarmOverview.js ....');
  }
  return state;
};
